package com.inspur_video.inspur_video.controller;

import com.inspur_video.inspur_video.bean.tofront.SwiperImgInfo;
import com.inspur_video.inspur_video.service.SwiperImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-08-02 19:29
 * @package com.inspur_video.inspur_video.controller
 * @description 获取轮播图的数据
 */
@RestController
public class SwiperImgController {
    @Autowired
    SwiperImgService swiperImgService;
    @RequestMapping("/swiperimg")
    public List<SwiperImgInfo> getSwiperImgInfo() {
        return swiperImgService.getSwiperImgInfo();
    }
}
